import java.util.Scanner;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: HP
 * Date: 2023 -04 -04
 * Time: 22:09
 */

class Complex{
    private double x;
    private double y;
    public Complex(double x, double y) {
        this.x = x;
        this.y = y;
    }
    @Override
    public String toString() {
        return "Complex{" +
                "x=" + x +
                ", y=" + y +
                '}';
    }
}

public class QuadraticEquation {
    private int a;
    private int b;
    private int c;
    public QuadraticEquation(int a, int b, int c) {
        this.a = a;
        this.b = b;
        this.c = c;
    }
    public int getDiscriminant(){
        return b*b-4*a*c;
    }
    public Complex getRoot1(){
        int p=getDiscriminant();
        if(p>=0){
            double ret=(-b+Math.sqrt(p))/(2*a);
            return new Complex(ret,0);
        }else{
            return new Complex(-b/(2.0*a),Math.sqrt(Math.abs(p))/(2*a));
        }
    }
    public Complex getRoot2(){
        int p=getDiscriminant();
        if(p>=0){
            double ret=(-b-Math.sqrt(p))/(2*a);
            return new Complex(ret,0);
        }else{
            return new Complex(-b/(2.0*a),-Math.sqrt(Math.abs(p))/(2*a));
        }
    }

    public static void main(String[] args) {
        while(true){
            Scanner sc=new Scanner(System.in);
            int a=sc.nextInt();
            int b=sc.nextInt();
            int c=sc.nextInt();
            QuadraticEquation q=new QuadraticEquation(a,b,c);
            System.out.println(q.getRoot1());
            System.out.println(q.getRoot2());
        }
    }
}
